const validate = require('./validationFun');
// 数字测试
const number1 =0;
const number2 =2;
const number3 ='a';
const number4 = null;
const number5 = undefined;
const number6 = [];
const number7 = -100.23;
const fun =(a)=>{}
function a (a){return 1}
const stringarr = ['123',123,undefined,null,[],'',true,NaN];
const numberarr = [number1,number2,number3,number4,number5,number6,number7,true,[1,2,3],a,fun];
const params = stringarr.concat(numberarr);
console.log('**********************isnumber***************************************')
params.forEach((number)=>{
    let result = validate.isNumber(number);
    console.log(number,result);
});
console.log('**********************istring***************************************')

params.forEach((string)=>{
    let result = validate.isString(string);
    console.log(string,result);
})
console.log('**********************isArray***************************************')

params.forEach((string)=>{
    let result = validate.isArray(string);
    console.log(string,result);
})
console.log('**********************isBoolean***************************************')

params.forEach((string)=>{
    let result = validate.isBoolean(string);
    console.log(string,result);
})
console.log('**********************isUndefined***************************************')

params.forEach((string)=>{
    let result = validate.isUndefined(string);
    console.log(string,result);
})
console.log('**********************isNull***************************************')

params.forEach((string)=>{
    let result = validate.isNULL(string);
    console.log(string,result);
})
console.log('**********************isFunction***************************************')

params.forEach((string)=>{
    let result = validate.isFunction(string);
    console.log(string,result);
})